package com.yunji.framework_template.biz.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunji.framework_template.common.web.Page;
import com.yunji.framework_template.orm.persistence.mapper.NewsSourcesMapper;
import com.yunji.framework_template.orm.persistence.model.NewsSources;

/**
 * Created by fenglibin on 2018/11/26.
 */
@Service
public class NewsSourcesService {

    @Autowired
    private NewsSourcesMapper newsSourcesMapper;

    public int deleteByPrimaryKey(Integer id) {
        return newsSourcesMapper.deleteByPrimaryKey(id);
    }

    public int insert(NewsSources record) {
        return newsSourcesMapper.insert(record);
    }

    public int insertSelective(NewsSources record) {
        return newsSourcesMapper.insertSelective(record);
    }

    public NewsSources selectByPrimaryKey(Integer id) {
        return newsSourcesMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(NewsSources record) {
        return newsSourcesMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(NewsSources record) {
        return newsSourcesMapper.updateByPrimaryKey(record);
    }

    public List<NewsSources> selectByCondition(NewsSources record) {
        return newsSourcesMapper.selectByCondition(record);
    }

    public List<NewsSources> selectAll() {
        return newsSourcesMapper.selectAll();
    }

    public List<NewsSources> selectByPage(Page<NewsSources> page) {
        return newsSourcesMapper.selectByPage(page);
    }

    public Integer count(NewsSources record) {
        return newsSourcesMapper.count(record);
    }

    public int deleteByCondition(NewsSources record) {
        return newsSourcesMapper.deleteByCondition(record);
    }

}
